package com.ruoyi.bank.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bank.mapper.BankReviewMapper;
import com.ruoyi.bank.domain.BankReview;
import com.ruoyi.bank.service.IBankReviewService;

/**
 * 评议界面Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-15
 */
@Service
public class BankReviewServiceImpl implements IBankReviewService 
{
    @Autowired
    private BankReviewMapper bankReviewMapper;

    /**
     * 查询评议界面
     * 
     * @param reviewId 评议界面主键
     * @return 评议界面
     */
    @Override
    public BankReview selectBankReviewByReviewId(Long reviewId)
    {
        return bankReviewMapper.selectBankReviewByReviewId(reviewId);
    }

    /**
     * 查询评议界面列表
     * 
     * @param bankReview 评议界面
     * @return 评议界面
     */
    @Override
    public List<BankReview> selectBankReviewList(BankReview bankReview)
    {
        return bankReviewMapper.selectBankReviewList(bankReview);
    }

    /**
     * 新增评议界面
     * 
     * @param bankReview 评议界面
     * @return 结果
     */
    @Override
    public int insertBankReview(BankReview bankReview)
    {
        return bankReviewMapper.insertBankReview(bankReview);
    }

    /**
     * 修改评议界面
     * 
     * @param bankReview 评议界面
     * @return 结果
     */
    @Override
    public int updateBankReview(BankReview bankReview)
    {
        return bankReviewMapper.updateBankReview(bankReview);
    }

    /**
     * 批量删除评议界面
     * 
     * @param reviewIds 需要删除的评议界面主键
     * @return 结果
     */
    @Override
    public int deleteBankReviewByReviewIds(Long[] reviewIds)
    {
        return bankReviewMapper.deleteBankReviewByReviewIds(reviewIds);
    }

    /**
     * 删除评议界面信息
     * 
     * @param reviewId 评议界面主键
     * @return 结果
     */
    @Override
    public int deleteBankReviewByReviewId(Long reviewId)
    {
        return bankReviewMapper.deleteBankReviewByReviewId(reviewId);
    }
}
